package cn.ht.jywrwater.module.ht.controller.admin.waterleakageanalysis.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.ht.jywrwater.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 漏损分析 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class WaterLeakageAnalysisBaseVO {

    @Schema(description = "种类 0-供水总量；1-有效供水量", example = "1")
    private Integer type;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "6740")
    @NotNull(message = "数量不能为空")
    private Long waterCount;

    @Schema(description = "区域")
    private String region;

    @Schema(description = "时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate dataDate;

}
